package com.ad_hccm.service.impl.Week;

import com.ad_hccm.dao.Week.RecrudescenceInducingFactorsDao;
import com.ad_hccm.domain.Week.RecrudescenceInducingFactors;
import com.ad_hccm.service.Week.RecrudescenceInducingFactorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 复发诱发或加重因素
 */
@Service
public class RecrudescenceInducingFactorsServiceImpl implements RecrudescenceInducingFactorsService {
    @Autowired
    private RecrudescenceInducingFactorsDao dao;

    @Override
    public boolean save(RecrudescenceInducingFactors domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(RecrudescenceInducingFactors domain) {
        return dao.update(domain);
    }

    @Override
    public List<RecrudescenceInducingFactors> getById(String id) {
        return dao.getById(id);
    }

    @Override
    public List<RecrudescenceInducingFactors> getAll() {
        return dao.getAll();
    }
}
